package com.yunji.order.command.order;

import com.yunji.order.business.delay.RedissonQueue;
import com.yunji.order.consumer.OrderConsumer;
import com.yunji.order.dto.cmd.OrderCommandDTO;
import com.yunji.order.service.OrderService;
import com.yunji.order.service.TradeService;

import javax.annotation.Resource;

/**
 * @author : peter-zhu
 * @date : 2025/3/17 17:00
 * @description : TODO
 **/
public abstract class AbsOrderCommand<T extends OrderCommandDTO, R> implements IOrderCommand<T, R> {

    @Resource
    protected OrderService orderService;

    @Resource
    protected OrderConsumer orderConsumer;

    @Resource
    protected RedissonQueue redissonQueue;

    public abstract R execute(T cmd);
}
